package codename.carrot.bomberman.views.widgets;

import sheep.gui.Widget;
import sheep.gui.WidgetAction;
import codename.carrot.bomberman.views.widgets.PlayerDeadWidget.ToggleDirection;

/**
 *  Widgetaction describing which way the player wants to change camera-view
 *  
 *  @author Group A4
 */


public class PlayerDeadWidgetAction extends WidgetAction{    
    /**
     * The direction in which to change camera-view
     */
    private ToggleDirection toggleDirection;

    public PlayerDeadWidgetAction(Widget source, ToggleDirection direction) {
        super(source);
        this.toggleDirection = direction;
    }   
    
    /**
     *  Returns the direction which the player wants to change camera-view
     * @return toggleDirection
     */
    public ToggleDirection getDirection(){
        return toggleDirection;
    }
}
